<template>
  <view class="bbox">
    <view class="sbox">
      <view class="record-title">
        今日记录
      </view>
      <uni-icons type="camera-filled" @click="gotoRecard(page)" size="30"></uni-icons>
      <uni-icons type="images-filled" size="30"></uni-icons>
    </view>

  </view>

</template>

<script>
  export default {
    name: "my-record",
    props: {
      page: {
        type: String,
        default: 'eat'
      }
    },
    data() {
      return {

      };
    },
    methods: {
      gotoRecard() {

        uni.navigateTo({
          url: '/subpkg/record/record?page=' + this.page,
          success: res => {},
          fail: () => {},
          complete: () => {}
        });
      }
    }
  }
</script>

<style lang="scss">
  .bbox {
    display: flex;
    // justify-content: flex-end;

    .sbox {
      padding-left: 50rpx;
      width: 300rpx;
      display: flex;
      justify-content: space-between;
      font-size: 35rpx;
      font-family: '宋体';
      align-items: center;
    }
  }
</style>
